package com.heima.common.exception;

import com.heima.model.common.enums.AppHttpCodeEnum;

/**
 * @Author 96558
 * @Date 2021/1/9 21:10
 * @Version 1.0
 **/
public class CustomException extends RuntimeException {
   //处理异常的枚举类
    private AppHttpCodeEnum appHttpCodeEnum;


    public CustomException(AppHttpCodeEnum appHttpCodeEnum) {
        this.appHttpCodeEnum = appHttpCodeEnum;
    }

    public AppHttpCodeEnum getAppHttpCodeEnum() {
        return appHttpCodeEnum;
    }
}
